package com.prj.web.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.prj.component.response.ResponseCallBack;
import com.prj.component.response.ResponseInfo;
import com.prj.module.test.service.ITestModelService;


@RestController
@RequestMapping("/test")
public class CustomerAddressController {

	@Resource
	ITestModelService testModelService;
	
	@RequestMapping(value = "/{id}", method = RequestMethod.POST)
	public ResponseInfo getTestModel(@PathVariable("id") final Long id) {
		return new ResponseCallBack() {
			@Override
			public Object execute(Object... obj) {
				return testModelService.getTestModel(id);
			}
		}.sendRequest();
	}
}

